import { configureStore } from '@reduxjs/toolkit';
import userInfoReducer from './modules/userInfoReducer';
import billListReducer from './modules/billListReducer';

const store = configureStore({
  reducer: {
    userInfo: userInfoReducer,
    billList: billListReducer
  }
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
export default store;
